import request from '@/utils/request'

export default{
    //分页查询讲师
    addVideo(eduVideo){
        return request({
            url: `/eduservice/edu-video/addVideo`,
            method: 'post',
            data: eduVideo
          })
    },
    deleteVideo(id){
        return request({
            url: `/eduservice/edu-video/deleteVideo/${id}`,
            method: 'delete',
           
          })
    },
    getVideoByid(videoId){
        return request({
            url: `/eduservice/edu-video/getVideoByid/${videoId}`,
            method: 'get',
           
          })
    },
    updateVideo(eduVideo){
        return request({
            url:`/eduservice/edu-video/updateVideo`,
            method:'post',
            data:eduVideo
        })
    },
    removeAliyunVideo(id){
        return request({
            url:`/eduvod/video/removeAliyunVideo/${id}`,
            method:'delete',
            
        })
    }

}